<?php if (!defined('THINK_PATH')) exit(); if(is_array($tags)): foreach($tags as $key=>$t): ?><a type="button" class="btn btn-default btn-primary" href="<?php echo U('Index/tags',array('tid'=>$t['tid']));?>">
        <?php echo ($t['tname']); ?></a>&nbsp;&nbsp;<?php endforeach; endif; ?>